// 统一管理所有API
import request from '@/utils/backend'

// 请求餐品列表数据 
export const GetFoodList = (params) => request.get(`foods/restaurants/${params.rest_id}`);

// 创建餐品 
export const CreateFood = (params) => request.post(`foods/`, params);

// 更新餐品
export const UpdateFood = (params) => request.put(`foods/`, params);

// 删除餐品
export const DeleteFood = (params) => request.delete(`foods/${params}`);

